home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Tutorial Material
/
Basic Tutorial
/
mcbrown1
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
2KB
|
94 lines
; Movement IV - OUT FROM THE EDGE for violin, sax and
; electric piano - part 2
(setq mat1 (gen-noise-brownian 9 0.4 0.4))
(setq mat2 (gen-noise-brownian 7 0.4 0.4))
(setq mat3 (gen-noise-brownian 5 0.4 0.4))
(setq zone1 (vector-round 192 768 mat3))
(setq vel1 (vector-round 32 120 mat1))
(setq ptch1 (vector-to-symbol a o mat1))
(setq ptch2 (vector-to-symbol a j mat2))
(setq ptch3 (vector-to-symbol a e mat3))
(create-tonality sumscale1 '(1 2 4 7 12 8 9 6 4 11))
(create-tonality sumscale2 '(1 2 5 9 4 3 9 2 1))
(create-tonality sumscale3 '(1 2 6 11 8 10 9 10))
(setq tonal
(symbols-to-tonality
symbols ptch3
transpose '((0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8)
(0 1 2 3 4 5 6 7))
mapping (activate-tonality
(sumscale1 c 3) (sumscale2 c 3) (sumscale3 c 3))
)
)
(setq tonal1
(symbols-to-tonality
symbols ptch3
transpose '((0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8)
(0 1 2 3 4 5 6 7))
mapping (activate-tonality
(sumscale1 c 4) (sumscale2 c 4) (sumscale3 c 4))
)
)
(setq tonal2
(symbols-to-tonality
symbols ptch3
transpose '((0 1 2 3 4 5 6 7 8 9)
(0 1 2 3 4 5 6 7 8)
(0 1 2 3 4 5 6 7))
mapping (activate-tonality
(sumscale1 c 5) (sumscale2 c 5) (sumscale3 c 5))
))
(def-symbol
pianorh (gen-random-variate 0.9 0.05 -2 2 (find-change ptch1))
pianolh (find-change ptch1)
sax (find-change ptch3)
violin (find-change ptch2)
)
(def-length
pianorh '(1/8)
pianolh '(1/8)
sax '(1/8)
violin '(1/8)
)
(def-velocity
pianorh vel1
pianolh vel1
sax vel1
violin vel1
)
(def-zone
pianorh zone1
pianolh zone1
sax zone1
violin zone1
)
(def-tonality
pianorh tonal1
pianolh tonal
sax tonal1
violin tonal2
)
(compile-instrument-p "ccl;output:" "trio"
pianorh
pianolh
violin
sax
)
; set tempo at 1/4 = 150. Molto rit during 3-4 bars.